package com.hyz.reposiroty.service.impl.impl;

import com.hyz.reposiroty.mapper.RepositoryMapper;
import com.hyz.reposiroty.pojo.Repository;
import com.hyz.reposiroty.service.RepositoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author HGD
 * @date 2022/10/1 10:47
 */
@Service
public class RepositoryServiceImpl implements RepositoryService {
    @Autowired
    private RepositoryMapper repositoryMapper;

    @Override
    public List<Repository> getAllRepositories() {
        return repositoryMapper.getAllRepositories();
    }
}
